package token_test

import (
	"testing"

	"github.com/infraboard/mcube/v2/ioc/config/datasource"
	"gitlab.com/go-course-project/go17/vblog/apps/token"
	"gitlab.com/go-course-project/go17/vblog/test"
)

func TestMigrate(t *testing.T) {
	// db 数据库连接对象, migrate
	if err := datasource.DB().AutoMigrate(&token.Token{}); err != nil {
		t.Fatal(err)
	}
}

func init() {
	test.LoadConfig()
}
